package demo4;

import java.util.*;

public class Test {
    public static void main(String[] args) {
        //队列的三种创建方式
        Queue<Integer> queue1 = new LinkedList<>();
        Deque<Integer> queue2 = new LinkedList<>();
        Deque<Integer> queue3 = new ArrayDeque<>();

        //栈的三种创建方式
        Stack<Integer> stack1 = new Stack<>();
        Deque<Integer> stack2 = new LinkedList<>();
        Deque<Integer> stack3 = new ArrayDeque<>();
    }
}
